bnx2x: Fix enabling network interfaces without VFs
authorAdrian Bunk <bunk@kernel.org>
Sun, 12 Sep 2021 19:05:23 +0000 (22:05 +0300)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 23 Sep 2021 20:35:21 +0000 (21:35 +0100)
commit39638b26b02768b1d494fe3c512257365acf636a
tree5c7b296a2cd0c02da38f68bd765c0ebbdeed9919
parenta2774d742cb86fddd0fc789667f8a4fd8e2cf3cb
bnx2x: Fix enabling network interfaces without VFs

Origin: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit?id=84da60070c36ddcd8bf4a576e637be8e86535ede
Bug-Debian: https://bugs.debian.org/993948

commit 52ce14c134a003fee03d8fc57442c05a55b53715 upstream.

This function is called to enable SR-IOV when available,
not enabling interfaces without VFs was a regression.

Fixes: 65161c35554f ("bnx2x: Fix missing error code in bnx2x_iov_init_one()")
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Reported-by: YunQiang Su <wzssyqa@gmail.com>
Tested-by: YunQiang Su <wzssyqa@gmail.com>
Cc: stable@vger.kernel.org
Acked-by: Shai Malin <smalin@marvell.com>
Link: https://lore.kernel.org/r/20210912190523.27991-1-bunk@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name bnx2x-Fix-enabling-network-interfaces-without-VFs.patch
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c